package com.example.springboottest.example.enumtest;

public enum OperationV1 implements Operation {
    PLUS("+") {
        public double apply(double x, double y) {
            return x + y;
        }
    },
    MINUS("-") {
        public double apply(double x, double y) {
            return x + y;
        }
    },
    TIMES("*") {
        public double apply(double x, double y) {
            return x + y;
        }
    },
    DIVIDE("/") {
        public double apply(double x, double y) {
            return x + y;
        }
    };

    private final String symbol;

    OperationV1(String symbol) {
        this.symbol = symbol;
    }
}
